<template>
	<text class="title" :class="{textStrokeBlue,textStrokeWhite}" :data-text="title">
		{{title}}
	</text>
</template>

<script>
	export default {
		props: {
			title: {
				type: String,
				default: '畅玩专区'
			},
			textStrokeBlue: {
				type: Boolean,
				default: false
			},
			textStrokeWhite: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.title {
		font-family: YouSheBiaoTiHei;

		&.textStrokeBlue {
			color: #000;
			position: relative;
			z-index: 0;
			font-size: 60rpx;
			line-height: 60rpx;

			&::before {
				content: attr(data-text);
				position: absolute;
				left: 0;
				z-index: -1;
				-webkit-text-stroke: 8rpx #48FFFD;
			}
		}

		&.textStrokeWhite {
			color: #FF7803;
			position: relative;
			z-index: 0;
			font-size: 32rpx;
			line-height: 44rpx;

			&::before {
				content: attr(data-text);
				position: absolute;
				left: 0;
				z-index: -1;
				-webkit-text-stroke: 4rpx #fff;
			}
		}
	}
</style>
